<?php
class Logout extends CI_Controller 
{
	function __construct()
	{
		parent::__construct();
		// $this->load->model('login_model');
	}
	
	function index()
	{
		// echo '<pre>';
		// print_r($this->session->userdata('login'));
		// echo '</pre>';
		
		//$this->session->unset_userdata($logindata);
		$this->session->unset_userdata('login');
		$this->session->sess_destroy();
		redirect('/login', 'refresh');
	}

	
}
?>